﻿#pragma once
#include "Devices.h"
#define LISTMSG_GETMINS 5001

// MinsListDlg 对话框

class MinsListDlg : public CDialogEx
{
	DECLARE_DYNAMIC(MinsListDlg)

public:
	MinsListDlg(CWnd* pParent = nullptr);   // 标准构造函数
	virtual ~MinsListDlg();
	HICON m_hIcon;

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_DIALOG_MINSLIST };
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持
	virtual BOOL OnInitDialog();

	DECLARE_MESSAGE_MAP()
public:
	const CString titles[8] = {
		L"cnt",
		L"wx d/s",
		L"wy d/s",
		L"wz d/s",
		L"fx m/s2",
		L"fy m/s2",
		L"fz m/s2",
		L"Tp deg",
	};
	const INT width[8] = { 45,115,115 ,115 ,115 ,115 ,115 ,115 };
	INT nextRowNUm = 0;

	CListCtrl datalist;

	afx_msg LRESULT addData(WPARAM wParam, LPARAM lParam);
};
